<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="app">

    <ul>
        <li>{{person.name}}</li>
        <li>{{person.age}}</li>
        <li>{{person.sex}}</li>
    </ul>
    
    <hr>
    
    <ul>
        <li v-for="item in person">{{item}}</li>
    </ul>
    
    <hr>

    <ul>
        <li v-for="(v,k) in person">{{k + "--" + v}}</li>
    </ul>
    
    <!--(v,k,index) in person   对象很少用到index，此处省略-->
    
</div>


<script src="../../js/vue.js"></script>

<script>
    const vue = new Vue({
        el: "#app",
        data: {
            message: "Hello vue,你好！",
            person: {
                name: "Deng Jian",
                age: 12,
                sex: "男"
            }
        },
        methods: {
            
        }
    });
</script>
</body>
</html>